package com.bqjr.xms.service.impl;

import java.util.List;

import com.bqjr.xms.service.ServerInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bqjr.xms.dao.ServerInfoDao;
import com.bqjr.xms.model.ServerInfo;

@Service
public class ServerInfoServiceImpl implements ServerInfoService {
	
	@Autowired
	private ServerInfoDao serverInfoDao;

	@Override
	public void insert(ServerInfo serverInfo) {
		serverInfoDao.insert(serverInfo);
	}

	@Override
	public void update(ServerInfo serverInfo) {
		serverInfoDao.update(serverInfo);
	}

	@Override
	public List<ServerInfo> getAll() {
		return serverInfoDao.getAll();
	}

	@Override
	public List<ServerInfo> getByServiceId(String serviceId) {
		return serverInfoDao.getList("serviceId", serviceId);
	}
	
}
